package com.eazy.lkv2.web.service.activity.impl;

import com.eazy.lkv2.web.entity.Activitys;
import com.eazy.lkv2.web.mapper.ActivityMapper;
import com.eazy.lkv2.web.service.activity.ActivityService;
import com.rework.joss.persistence.convention.BaseDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by ywj on 2016/9/7.
 */
@Service
public class ActivityServiceImpl extends BaseDao<Activitys, Integer> implements ActivityService {

    @Autowired
    ActivityMapper activityMapper;

    @Override
    public List<Map<String, Object>> select() {
        return activityMapper.select();
    }

    @Override
    public List<Activitys> selectAll() {
        return activityMapper.selectAll();
    }


    @Override
    public Activitys selectById(Integer id){
        return activityMapper.selectById(id);
    }
}
